package gold.github.CloudCenter.sevice;

import gold.github.CloudCenter.model.User;
import gold.github.CloudCenter.model.WeChat.WeChatLoginModel;
import gold.github.CloudCenter.model.WeChat.WeChatResultModel;

/**
 * @Author: XYBH
 * @Description:
 * @Date: Created in 2020/4/26 0026 0:43
 * @Modified:
 */
public interface IUserService {
    /**
     * <p>登录成功后，将用户身份信息及session_key存入token</p>
     * @param model
     * @return WeChatResultModel 包含openId,sessionKey,User等信息
     */
    WeChatResultModel<User> weChatLogin(WeChatLoginModel model);

    /**
     * <p>根据userId查询用户</p>
     * @param userId
     * @return User
     */
    User getUserByUserId(String userId);
}
